package com.tedu.supermarket_01.controller;

import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转controller
 */
@Controller
public class IndexController  {
    @RequestMapping("/index")
    public String toLongin(){
        System.out.println("显示登录首页");
        return "login";//视图解析   指向： /WEB-INF/jsp/login.jsp

    }
}
